package com.lt.flashcard.model.entity;

/**
 * Represent a result after the payment
 * @author ocsen
 *
 */
public class PaymentResult {

	private boolean success = false;
	
	private String message = "";
	
	/**
	 * In case payment for an order
	 */
	private Orderdetail order = null;
	
	/**
	 * In case payment for a history
	 */
	private AddCoinHistory history = null;
	
	public PaymentResult(boolean success, Orderdetail order, String message) {
		this.success = success;
		this.message = message;
		this.order = order;
	}
	
	public PaymentResult(boolean success, AddCoinHistory history, String message) {
		this.success = success;
		this.message = message;
		this.history = history;
	}
	
	public PaymentResult(String message) {
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Orderdetail getOrder() {
		return order;
	}

	public void setOrder(Orderdetail order) {
		this.order = order;
	}

	public AddCoinHistory getHistory() {
		return history;
	}

	public void setHistory(AddCoinHistory history) {
		this.history = history;
	}
	
}
